import request from '@/utils/request_zc'

export function getReplenishmentApplicationList ({ page, limit }) {
  return request({
    url: '/replenishment/application/list',
    method: 'get',
    params: {
      page,
      limit
    }
  })
}

export function editReplenishmentApplication (data) {
  return request({
    url: '/replenishment/application/edit',
    method: 'post',
    data
  })
}

export function addReplenishmentApplication ({ }) {
  return request({
    url: '/replenishment/application/add',
    method: 'post',
    data: {

    }
  })
}

export function delReplenishmentApplication ({ ids }) {
  return request({
    url: '/replenishment/application/del',
    method: 'post',
    data: {
      ids
    }
  })
}

export function genPurchaseRequest (data) {
  return request({
    url: '/replenishment/application/add_request',
    method: 'post',
    data
  })
}
